set n=50
set problem="11nums28bits.seed"
set output="11nums28bits.out"

echo "setup main server"
start cmd.exe @cmd /k "plink lemduc@stile01.cloudapp.net -pw Meocon@)13 java -Xmx4G -cp .:PrismMW2_1.jar tileStyle.TileStyleStarter server stile01.cloudapp.net %n% SubsetSum.tiles %problem% %output% 0"

ping 192.0.2.2 -n 1 -w 1000 > nul

for /L %%a in (2, 1, %n%) do (
IF %%a LEQ 9 (
start cmd.exe @cmd /k "plink lemduc@stile0%%a.cloudapp.net -pw Meocon@)13 java -Xmx4G -cp .:PrismMW2_1.jar tileStyle.TileStyleStarter client stile0%%a.cloudapp.net stile01.cloudapp.net"	
)
IF %%a GEQ 10 IF %%a LEQ 40 (
start cmd.exe @cmd /k "plink lemduc@stile%%a.cloudapp.net -pw Meocon@)13 java -Xmx4G -cp .:PrismMW2_1.jar tileStyle.TileStyleStarter client stile%%a.cloudapp.net stile01.cloudapp.net"	
)
IF %%a GEQ 41 IF %%a LEQ 50 (
start cmd.exe @cmd /k "plink azureuser@stile%%a.cloudapp.net -pw  sTile@40 java -Xmx4G -cp .:PrismMW2_1.jar tileStyle.TileStyleStarter client stile%%a.cloudapp.net stile01.cloudapp.net"	
)
)